package com.example.common.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class PaiXu implements Comparable <PaiXu>{
    String a;
    int b;

    @Override
    public int compareTo(PaiXu o) {
        if((this.b-o.getB())>0){ return -1;}
        else if((this.b-o.getB())<=0){return 1;}
        return 0;
    }
}
